package com.huiyeji.hui.vo;

import java.util.List;

/**
 * @author zhaoduo
 */
public class PageResult<T>{

    private Integer size;
    private List<T> record;
    private Integer current;

    private PageResult(){}

    public static <T> PageResult<T> build(Integer current,Integer size,List<T> record){
        PageResult<T> result = new PageResult<>();
        result.setCurrent(current);
        result.setSize(size);
        result.setRecord(record);
        return result;
    }

    public Integer getSize() {
        return size;
    }

    public void setSize(Integer size) {
        this.size = size;
    }

    public List<T> getRecord() {
        return record;
    }

    public void setRecord(List<T> record) {
        this.record = record;
    }

    public Integer getCurrent() {
        return current;
    }

    public void setCurrent(Integer current) {
        this.current = current;
    }
}
